<template>
<Demo v-show="run"></Demo>
  <button @click="run=!run">隐藏/显示</button>
</template>

<script>


import Demo from "@/components/Demo";
import {ref} from "vue";
export default {
  name: 'App',
  components: {Demo},
  setup(){
    let run = ref(true)

    return{
      run,
    }
  },
}
</script>

<style>

</style>
